package com.augn.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class Cart implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer cartId; //购物车编号
    private Integer userId; //用户编号
    private Integer goodsId; //商品编号
    private Integer styleId; //款式编号
    private String image; //图片链接
    private String name; //商品名
    private String styleName; //样式名字
    private Integer num; //数量

    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
